import re


class CleanCsv(object):
    def clean_data(self, csv):
        csv['looks'] = csv['looks'].map(self.int_data)

    def int_data(self, x):
        res = re.match(r'.+(?=万)', x)
        if res:
            return int(float(res.group()) * 10000)
        else:
            return int(x)
